package com.hualian.coupon.service.impl;

import com.hualian.coupon.mapper.MemCouponMapper;
import com.hualian.coupon.pojo.MemCoupon;
import com.hualian.coupon.service.MemCouponService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author Lxd
 * @Description TODO
 * @date 2020/10/23 19:00
 * @Version 1.0
 */
@Service("memCouponService")
public class MemCouponServiceImpl implements MemCouponService {

    @Resource
    MemCouponMapper memCouponMapper;
    @Override
    public List<Map<String,Object>> queryAll(String phone) {
        return memCouponMapper.getList(phone);
    }

    @Override
    public List<Map<String, Object>> queryUse(String startDate, String endDate) {
        return memCouponMapper.getUseList(startDate, endDate);
    }
}
